import { get, post } from '@/utils/request'

export default class FlowCategoryController {
  static treeList(params) {
    return post(`/service-workflow/b/flow/flowCategory/v1/categoryTreeList`, params)
  }

  static list(params) {
    return post(`/service-workflow/b/flow/flowCategory/v1/list`, params)
  }

  static view(params) {
    return get(`/service-workflow/b/flow/flowCategory/v1/view`, params)
  }

  static add(params) {
    return post(`/service-workflow/b/flow/flowCategory/v1/add`, params)
  }

  static update(params) {
    return post(`/service-workflow/b/flow/flowCategory/v1/update`, params)
  }

  static delete(params) {
    return post(`/service-workflow/b/flow/flowCategory/v1/delete`, params)
  }
}
